Directory Structure
Few important directories in the Tomcat server are as follows:
-
/bin : This directory contains the startup and shutdown scripts for both Windows and Linux.
-
/conf : This directory contains the main configuration files for Tomcat.
-
The most important are the server.xml, context.xml, and Catalina folder with per-host Context xml file under new folder struture with hostname/domainname.
-
Note : Catalina scans that directory and creates a web application Context from each file at runtime.
-
-
/lib : This directory contains Java Archive files that Tomcat is dependent upon.
-
/logs : This directory contains Tomcat log files.
-
/webapps : All web applications are deployed in this directory; it contains the WAR file.
-
/work : This is the directory in which Tomcat will place all servlets that are generated.